#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>

#include "string.h"


#include "./../luaQt.h"
#include "./../luaQPen.h"

/* function to release collected object via destructor */
namespace LuaQt{
	void open_luaQFont(sol::table& module)
	 {
		module.set_function("NewQFont", []() { return QFont(); });
		module.new_usertype<QFont>("QFont"
				,"pointSize", sol::property( &QFont::pointSize, &QFont::setPointSize)
				,"italic", sol::property( &QFont::italic, &QFont::setItalic)
				,"bold", sol::property( &QFont::bold, &QFont::setBold)
				,"underline", sol::property( &QFont::underline, &QFont::setUnderline)

		);
	}
};
